home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / pgm_tool / lu62 / include / state1.h < prev    next >
Text File  |  1995-07-03  |  12KB  |  311 lines

  1. #define Attach_lu                  0x2100
  2. #define Detach_lu                  0x2200
  3. #define ASCII                      0
  4. #define EBCDIC                     1
  5. #define Allocate                   1
  6. #define Confirm                    3
  7. #define COnfirmed                  4
  8. #define Deallocate                 5
  9. #define Flush                      6
  10. #define Get_attributes             7
  11. #define Post_on_receipt            9
  12. #define Prepare_to_receive         10
  13. #define Receive_and_wait           11
  14. #define Receive_immediate          12
  15. #define Request_to_send            14
  16. #define Send_data                  15
  17. #define Send_error                 16
  18. #define Test                       18
  19. #define mc_confirm                 15
  20. #define mc_Confirmed               16
  21. #define mc_deallocate              17
  22. #define mc_flush                   18
  23. #define mc_get_attributes          19
  24. #define mc_post_on_receive         20
  25. #define mc_receive_immediate       21
  26. #define mc_request_to_send         22
  27. #define mc_send_data               23
  28. #define mc_send_error              24
  29. #define mc_test                    25
  30. #define TP_STARTED                 0x2400
  31. #define TP_ENDED                   0x2500
  32. #define CONVERT                    0x1a00
  33. #define initialize_session_limit   26
  34. #define chanqe_session_limit       27
  35. #define set_lucb                   28
  36. #define set_partner_lu             29
  37. #define Set_mode                   30
  38. #define set_mode_option            31
  39. #define set_transaction_program    32
  40. #define set_privileged_function    33
  41. #define set_resource_supported     34
  42. #define SET_SYNC_LEVEL_SUPPORTED   35
  43. #define set_mc_function_supported  36
  44. #define set_cplu_capability        37
  45. #define get_lucb                   38
  46. #define get_partner_lu             39
  47. #define Get_mode                   40
  48. #define get_mode_option            41
  49. #define get_transaction_program    42
  50. #define get_privileged_function    43
  51. #define get_resource_supported     44
  52. #define get_cplu_capability        45
  53. #define list_partner_lu            46
  54. #define list_mode_option           47
  55. #define List_mode                  48
  56. #define list_lu_option             49
  57. #define list_transaction_program   50
  58. #define process_session_limit      51
  59. #define activate_session           52
  60. #define syncpt                     53
  61. #define backout                    54
  62. #define get_type                   55
  63. #define Wait                       56
  64. /*
  65. ¥Γ¿ º¡áτÑ¡¿∩ ¿ß»«½∞ºπεΓß∩ »α¿ ó맮óÑ »áαá¼ÑΓα«ó
  66.    ó ßΓαπ¬Γπαáσ
  67. */
  68. #define Service_component          57
  69. #define TP                         58
  70. #define Basic_conversation         59
  71. #define Mapped_conversation        60
  72. #define mc_allocate                61
  73. #define mc_prepare_to_receive      62
  74. #define mc_receive_and_wait        63
  75. #define rest_session_limit         64
  76. #define list_sync_level_supported  65
  77. #define list_privileged_function   66
  78. #define list_resource_supported    67
  79. #define list_mc_supported_lu       68
  80. #define list_cplu_capability           69
  81. #define list_mc_function_supported_tp  70
  82. #define own                            71
  83. #define other                          72
  84. #define WHEN_SESSION_ALLOCATED         73
  85. #define DELAYED_ALLOCATION_PERMITED    74
  86. #define Immediate                      75
  87. #define NONE                           0
  88. #define same                           77
  89. #define pgm                            78
  90. #define No                             0
  91. #define YES                            1
  92. #define Sync_level                     81
  93. #define Local                          82
  94. #define lng                            83
  95. #define SHORT                          84
  96. #define posted                         85
  97. #define request_to_send_received       86
  98. #define ll                             87
  99. #define buffer                         88
  100. #define BASED                          89
  101. #define MAPPED                         90
  102. #define abend_prog                     91
  103. #define abend_svc                      92
  104. #define abend_timer                    93
  105. #define prog                           94
  106. #define SVC                            95
  107. /*  ¥Γ¿ º¡áτÑ¡¿∩ ¿ß»«½∞ºπεΓß∩ »α¿ ó맮óÑ
  108.      fsm_conversation
  109. */
  110.  
  111. #define ATTACH                96
  112. #define PREP_TO_RCV_FLUSH               97
  113. #define PREP_TO_RCV_CONFIRM_SH         197
  114. #define PREP_TO_RCV_CONFIRM_LG         198
  115. #define PREP_TO_RCV_DEFER               99
  116. #define send_indicator                  100
  117. #define confirm_indicator               101
  118. #define confirm_send_ind                102
  119. #define confirm_dealloc_ind             103
  120. #define program_error_rc                104
  121. #define service_error_rc                105
  122. #define Dealloc_normal_rc               106
  123. #define Dealloc_abend_rc                107
  124. #define Deallocate_flush                108
  125. #define Deallocate_confirm              109
  126. #define Deallocate_defer                110
  127. #define Deallocate_abend                111
  128. #define Deallocate_local                112
  129. #define Deallocated_ind                 113
  130. #define RESOURCE_FAILURE_RC             114
  131. #define ALLOCATION_ERROR_RC             115
  132. /*
  133.    ¿¼Ñ¡á ß«ßΓ«∩¡¿⌐ áóΓ«¼áΓá
  134.      fsm_conversation
  135. */
  136. #define RESET                           116
  137. #define SEND                            117
  138. #define Rcv                             118
  139. #define rcvd_confirm                    119
  140. #define rcvd_confirm_send               120
  141. #define rcvd_confirm_deall              121
  142. #define deall_defer                     122
  143. #define pend_deall                      123
  144. #define END_CONV                        124
  145. /*
  146.    ç¡áτÑ¡¿∩ ¬«ñ«ó ó«ºóαáΓá ,»ÑαÑñáóáѼδσ ó
  147.    ó«ºóαáΘáѼδσ »áαá¼ÑΓαáσ
  148. */
  149. #define  OK                              0
  150. #define  PORT_ABENDED                    0xf003
  151. #define  PORT_BUSY                       0xf002
  152. #define  PORT_DISABLED                   0xf001
  153. #define  ALLOCATION_ERROR                0x0003
  154. #define  PARAMETER_ERROR                 127
  155. #define  CONV_FAILURE_NO_RETRY            0x0010
  156. #define  CONV_FAILURE_RETRY               0x000f
  157. #define  backed_out                      128
  158. #define  deallocate_normal               129
  159. #define  deallocate_abend_prog           130
  160. #define  deallocate_abend_svc            131
  161. #define  deallocate_abend_timer          132
  162. #define  prog_error_no_trunc             133
  163. #define  prog_error_trunc                134
  164. #define  prog_error_purging              135
  165. #define  RESOURCE_FAILURE_NO_RETRY       136
  166. #define  RESOURCE_FAILURE_RETRY          137
  167. #define  UNSUCCESSFUL                    138
  168. #define  posting_not_activ               139
  169. #define  svc_error_no_trunc              140
  170. #define  svc_error_purging               141
  171. #define  svc_error_trunc                 142
  172. #define  BAD_LU_ID                       3
  173. #define  ALLOCATION_FAILURE_NO_RETRY     4
  174. #define  ALLOCATION_FAILURE_RETRY        5
  175. #define  SYNC_LEVEL_NOT_SUPPORTED        145
  176. /* invalid_lu_mode = allocation_failure_no_retry */
  177. #define  INVALID_LU_NAME                 4
  178. /* invalid_mode_name = unknown_partner_mode */
  179. #define  INVALID_MODE_NAME               0x00000018
  180. #define  ok_data                         148
  181. #define  ok_not_data                     149
  182. #define  session_not_immediately_avaliab 150
  183. #define  DEALLOC_CONFIRM_BAD_STATE       0x00000053
  184.  
  185. /*  ¥Γ¿ º¡áτÑ¡¿∩ ¿ß»«½∞ºπεΓß∩ ó áóΓ«¼áΓÑ
  186.      fsm_error_or_failure
  187. */
  188. #define  NO_RQS                           151
  189. #define  RCVD_ERROR                       152
  190. #define  CONV_FAILURE_PROTOCOL_ERROR      153
  191. #define  CONV_FAILURE_SON                 154
  192. #define  ALLOCATE_FAILURE_RETRY           155
  193. #define  ALLOCATE_FAILURE_NO_RETRY        156
  194. #define  SYNC_LEVEL_NOT_SUPPORTED_BY_LU   157
  195. #define  ALLOCATE_ERROR                   158
  196. /*
  197.  * ê¼Ñ¡á ¬«¼»«¡Ñ¡Γ ñ½∩ «í¼Ñ¡á ß««íΘÑ¡¿∩¼¿
  198.  */
  199. #define  PS                               159
  200. #define  HS                               160
  201. #define  RM                               161
  202. #define  LNS                              162
  203. #define  Receive_data                     163
  204. #define  Receive_error                    164
  205. #define  Rsp_to_request_to_send           165
  206. /*
  207.  * fsm_error
  208.  */
  209. #define  CONV_FAIL_PROTOCOL               166
  210. #define  CONV_FAIL_SON                    167
  211. #define  ALLOC_FAIL_RETRY                 168
  212. #define  ALLOC_FAIL_NO_RETRY              169
  213. #define  SYNC_LEVEL_NOT_SUPPTD            170
  214. /*
  215.    ¥Γ¿ º¡áτÑ¡¿∩ ¿ß»«½∞ºπεΓß∩ »α¿
  216.    «íαáí«Γ¬Ñ »α¼¿Γ¿ó«ó
  217.  */
  218. #define deactivate_session                172
  219. #define list_mc_function_lu               173
  220. /*
  221.    session_activation_polarity
  222. */
  223. #define first_speaker                     174
  224. #define bidder                            175
  225. /*
  226.    rm_session_activated
  227. */
  228. #define activation_failure_no_retry       176
  229. #define activation_failure_retry          177
  230. #define lu_mode_session_limit_exceeded    178
  231. /*
  232.    rm_deactivation_session
  233.  */
  234. #define cleanup                           179
  235. #define NORMAL                            180
  236. /*
  237.  * ç¡áτÑ¡¿∩ ¬«ñ«ó ºá»¿ßÑ⌐, »ÑαÑñáóáѼδσ «Γ
  238.  * PS ¬ RM
  239.  */
  240. #define DEALLOCATE_RCB                    181
  241. #define TERMINATE_PS                      182
  242. #define ALLOCATE_RCB                      183
  243. #define NO_ATTACH                         184
  244. #define NOT_END_OF_DATA                   185
  245. #define UNSUC_NO_RETRY                    186
  246. #define UNSUC_RETRY                       193
  247. #define CHANGE_SESSION                    187
  248. #define RM_ACTIVATE_SESSION               189
  249. #define RM_DEACTIVATE_SESSION             190
  250. #define UNBIND_PROTOCOL_ERROR             191
  251. #define GET_SESSION                       192
  252. #define PARAMETR_CHECK                    0x0001
  253. #define INCOMPLETE                        0xf004
  254. #define BAD_TP_ID                         0x00000001
  255. #define BAD_CONV_ID                       0x00000002
  256. #define STATE_CHECK                       0x0002
  257. #define DEALLOC_FLUSH_BAD_STATE           0x00000052
  258. #define BAD_LL                            195
  259. #define NO_SUSPEND                        196
  260. /* Half session state */
  261. #define IN_USE                            0
  262. #define FREE                              1
  263. /*
  264.  * Next follows values for parm TYPE for subroutine
  265.  * SENDHS
  266.  */
  267. #define Fmh                               1
  268. /*
  269.  * MAX_LEN used for buffer management func.
  270.  */
  271. #define  MAX_LEN                          255
  272. /* FMHRCV - FMH-5 or FMH-7 received */
  273. #define FMHRCV                            0x00ff
  274. /* SESSINI - session is ready */
  275. #define SESSINI                           0x01ff
  276. /* CLSSESP - session was closed by primary LU */
  277. #define CLSSESP                           0x02ff
  278. /* CLSSESS - session was closed by secondary LU */
  279. #define CLSSESS                           0x03ff
  280. /* DR - Data is ready for receive */
  281. #define DR                                0x04ff
  282. #define POSTOPEN                          0x05ff
  283. /* Local resource failure */
  284. #define LRF                               0x07ff
  285. /*
  286.  * Values for WHAT_RECEIVED variable.
  287.  */
  288. #define DATA               0
  289. #define Data_COMPLETE      1
  290. #define Data_INCOMPLETE    2
  291. #define ConfirM            3
  292. #define Confirm_SEND       4
  293. #define Confirm_DEALLOCATE 5
  294. #define SenD               6
  295. /*                          */
  296. #define LU62         200
  297. #define MAX_SEG      2048
  298. #define MAX_RU       2017
  299. /******* Trace codes ********/
  300. #define INPROC   1
  301. #define RETPROC  2
  302. #define CALLPROC 3
  303. #define GREC     4
  304. /****************************/
  305. #define DEBUG 0
  306. #define PPATH "/portm/pipes/ap/"
  307. /*
  308.  * OS_TYPE definitions: MS-DOS - 0; Unix V - 1
  309.  */
  310. #define OS_TYPE 0
  311.